<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>获取服务</title>
{literal}
<style type="text/css">
body,html{height:100%; overflow:hidden; font-family:'微软雅黑'; font-size:16px;}
body,html,p,div,button,ul,ol,li,select{margin:0; padding:0; background-color:#eee;}
ul,ol{list-style:none;}
.main{width:85%; height:100%; margin:0 2% 0 auto;}
.setction{width:100%; height:90%; background-color:#FFFFFF; overflow:auto;border:#d4d4d4 solid 1px; margin-top:2%;}
.setction table {margin:8px auto; border:#F2F2F2 solid 6px;background-color:#D8D8D8; width:94%;}
.setction table caption{ text-align:left; height:50px; line-height:50px; text-indent:10px; font-weight:bold; font-size:22px; background-color:#f2f2f2;}
.setction table td{ border-bottom:#f1f1f1 dotted 1px; height:80px; padding:8px;}
.setction table p{ width:98%; height:100%; background-color:#f2f2f2; padding:8px;}
</style>
{/literal}
<script language="javascript" type="text/javascript" src="ui/ui/js/jquery.js"></script>
</head>
<body>
<div class="main">
<div class="setction" id="serviceManage">
  <table border="0" align="center" cellpadding="0" cellspacing="0">
  <caption>服务管理</caption>
  <tbody id="serviceList">
  
  </tbody>
  </table>
  </div>

</div>
</body>
</html>
{literal}
<script language="javascript" type="text/javascript">
	$.ajax({url:'?path=vhlInfo&action=vhlInfo&method=getService',data:{},type:'GET',contentType:"json",success: function(ret){
		var html = $.map(ret.ServiceInfo.services,function(el,index){
			return "<tr><td width=\"200\" height=\"50\" align=\"left\" style=\"padding-left:10px;\"><input type=\"checkbox\" disabled=\"true\" checked=\""+el.active+"\"/>"+el.serviceName+"</td><td width=\"761\"><p>"+el.description+"</p></td></tr>";
		});
		$("#serviceList").append(html).css('zoom','1');
	},error:function(msg){
		alert(msg);
	}});
</script>
{/literal}